package com.travel.admin.api.client;

import java.util.List;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import com.travel.admin.constants.ServiceConstant;
import com.travel.admin.domain.About;
import com.travel.admin.domain.AboutQuery;
import com.travel.admin.web.response.HandleResp;


@FeignClient(value = ServiceConstant.TRAVEL_SERVICE)
public interface AboutApi {
	@RequestMapping(value = "/v1/about/findById", method = {RequestMethod.POST})
	@ResponseBody
	public HandleResp<About> findById(@RequestBody Long id);
	
	@RequestMapping(value = "/v1/about/modifyById", method = {RequestMethod.POST})
	@ResponseBody
    public HandleResp<Integer> modifyById(@RequestBody About about);

	@RequestMapping(value = "/v1/about/count", method = {RequestMethod.POST})
	@ResponseBody
    public HandleResp<Integer> count(@RequestBody AboutQuery aboutQuery);

	@RequestMapping(value = "/v1/about/find", method = {RequestMethod.POST})
	@ResponseBody
    public HandleResp<List<About>> find(@RequestBody AboutQuery aboutQuery);

	@RequestMapping(value = "/v1/about/create", method = {RequestMethod.POST})
	@ResponseBody
    public HandleResp<About> create(@RequestBody About about);

	@RequestMapping(value = "/v1/about/findAllByOrderDesc", method = {RequestMethod.POST})
	@ResponseBody
    public HandleResp<List<About>> findAllByOrderDesc(@RequestBody AboutQuery aboutQuery);
    
}
